import request from "@/API/request";
// 菜单列表
export const MenuApi = (params) =>
  request.get("/prod-api/system/menu/list", { params });
// 菜单下拉树
export const MenuTreeApi = (params) =>
  request.get("/prod-api/system/menu/treeselect", params);
// 菜单详细列表
export const MenuDellApi = (menuId) =>
  request.delete(`/prod-api/system/menu/${menuId}`);
// 新增菜单数据
export const MenuAddApi = (params) =>
  request.post("/prod-api/system/menu", params);
// 修改菜单数据
export const MenuEditApi = (params) =>
  request.put("/prod-api/system/menu", params);
export const MenuDetailApi = (id) => request.get(`/prod-api/system/menu/${id}`);

// 客户列表
export const customerApi = (params) =>
  request.get("/prod-api/customer", { params });
// 新增客户数据
export const AddCustomerApi = (params) =>
  request.post("/prod-api/customer", params);
